import { SystemSettingDao } from "../../gm_server/dao/SystemSettingDao";
import { GameConfig } from "../config/GameConfig";
import { RoomJinbiConfig } from "../config/RoomJinbiConfig";
import { RoomMatchConfig } from "../config/RoomMatchConfig";

export class SystemSettingModel {

    public static instance: SystemSettingModel = new SystemSettingModel();

    public choushui: string = ""
    public ziyouchang_ticheng: string = ""

    public waigua_mopai: string = ""
    public waigua_toushi: string = ""
    public waigua_enterclub: string = ""
    public waigua_mopai_users: Array<number> = []
    public waigua_toushi_users: Array<number> = []
    public waigua_enterclub_users: Array<number> = []


    public async init() {

        // this.waigua_mopai_users = []
        // let arr: Array<string> = []
        // if (this.waigua_mopai) {
        //     arr = this.waigua_mopai.split(",")
        //     for (let i = 0; i < arr.length; i++) {
        //         this.waigua_mopai_users[i] = parseInt(arr[i])
        //     }
        // }
        // this.waigua_toushi_users = []
        // if (this.waigua_toushi) {
        //     arr = this.waigua_toushi.split(",")
        //     for (let i = 0; i < arr.length; i++) {
        //         this.waigua_toushi_users[i] = parseInt(arr[i])
        //     }
        // }
        // this.waigua_enterclub_users = []
        // if (this.waigua_enterclub) {
        //     arr = this.waigua_enterclub.split(",")
        //     for (let i = 0; i < arr.length; i++) {
        //         this.waigua_enterclub_users[i] = parseInt(arr[i])
        //     }
        // }
      


    }


}